package com.ecoolex.ying.space.ws;

import java.util.Map;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import com.ecoolex.framework.common.exception.BizException;
import com.ecoolex.ying.space.core.service.WeiXinPayService;
import com.ecoolex.ying.space.entity.EstateProjectActivityCouponOrder;
import com.ecoolex.ying.space.entity.EstateProjectActivityCouponPackage;

@Service
public class PaymentOrderServiceImpl implements PaymentOrderService{
	
	@Autowired
	private WeiXinPayService weiXinPayService;

	@Override
	public Map weiXinPayApply(EstateProjectActivityCouponOrder order, String ipAdress, String createUser) throws BizException {
		return weiXinPayService.payApply(order, ipAdress, createUser);
	}

	@Override
	public String orderNotify(String body, String createUser) {
		return weiXinPayService.orderNotify(body, createUser);
	}

	@Override
	public boolean weixinRefundApply(EstateProjectActivityCouponOrder order,EstateProjectActivityCouponPackage couponPackage, String createUser) throws BizException {
		return weiXinPayService.weixinRefundApply(order,couponPackage, createUser);
	}
	
	@Override
	public String refundNotify(String body, String createUser) {
		return weiXinPayService.refundNotify(body, createUser);
	}

}
